<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title><?=Html::chars($title)?></title>
    <link href="/styles/reset.css" rel="stylesheet" type="text/css" media="screen" />
	<link href="/styles/style.css" rel="stylesheet" type="text/css" />
	<link href="/styles/autoform.css" rel="stylesheet" type="text/css" />
	<link href="/styles/admin.css" rel="stylesheet" type="text/css" />
	<?php
		if (isset($link)) foreach ($link as $i) {
			echo '<link' . Html::attributes($i) . ' />'."\n";
		}
	?>
	<script type="text/javascript">//<![CDATA[
		var CONFIRMATION_REMOVE = "Do you want to remove this item?";
	//]]></script>
<!--    <script type="text/javascript" src="/scripts/multiselect/jquery.min.js"></script>-->
<!--    <script type="text/javascript" src="/scripts/multiselect/jquery-ui.min.js"></script>-->
<!--    <script type="text/javascript" src="/scripts/multiselect/jquery.localisation-min.js"></script>-->
<!--    <script type="text/javascript" src="/scripts/multiselect/jquery.scrollTo-min.js"></script>-->
<!--    <script type="text/javascript" src="/scripts/multiselect/ui.multiselect.js"></script>-->

	<?if (isset($scripts)) foreach ($scripts as $script) :?>
		<script type="text/javascript" src="<?=Url::site($script)?>"></script>
	<?endforeach?>
<!--    <script type="text/javascript">		$(function(){-->
<!--        $(".multiselect").multiselect({sortable: true, searchable: true}); });-->
<!--    </script>-->
</head>
<body class="template-simple">
<div class="main-container">
<table class="container">
	<tr>
		<td class="w100 paddingBottom10 paddingTop10">
			<table class="w100">
				<tr>
					<td class="w50">
						<?=Html::anchor('/admin/', 'Dashboard',array('eva-title'=>'Quick help','eva-content'=>'Press here if you want redirect to main page of dashboard')) . (isset($page)? ' — ' . $page : '')?>
						 | <?=Html::anchor('/', 'Website homepage',array('eva-title'=>'Quick help','eva-content'=>'The main page of web-site will be opened in new window','target'=>'_blank'));?>
					</td>
					<td class="w50 right">
						<span id="ajax-message"></span>
						<span eva-title="Quick help" eva-content="Username signed-in"><?=ucfirst($identity['name'])?><span>
						 | <?=Html::anchor('/admin/settings/', 'Website settings',array('eva-content'=>'Select this option for website settings')) . (isset($page)? ' — ' . $page : '')?>
                         | <?=Html::anchor('/admin/users/', 'Manage users',array('eva-content'=>'Select this option for website settings')) . (isset($page)? ' — ' . $page : '')?>
						 | <?=Html::anchor('/auth/signout/', 'Sign Out', array('eva-content'=>'Put here if your want exit from dashboard'))?>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td class="w100 paddingBottom10 paddingTop10">
			<?=$content?>
		</td>
	</tr>
	<tr>
		<td class="w100 small">
			Processed in {execution_time} seconds, using {memory_usage} of memory,<br />
			executed {database_queries} database queries and included {included_files} files.
		</td>
	</tr>
</table>



<script type="text/javascript">
    evaMessage = 'Hi, <?=ucfirst($identity['name'])?>! Hover your mouse over each item to see what is it for! <br />Press <span style="cursor:pointer;" onclick=\'javascript:$(".eva-container").css({"display":"none"});\'><B>HERE</B></span>  to hide me and press F5 to get me back';
</script>
</div>
</body>
</body></html>
